import Vue from 'vue'
import  Vuex from 'vuex'
import mutations from "./mutations";
import actions from "./actions";
import getters from "./getters";
Vue.use(Vuex)
const store = new Vuex.Store({
    state:{
       user:{
           isLogin:!!window.localStorage.getItem('token')
       },
        cart:{
           count:0
        },
        addressInfo:{}
    },
    mutations:mutations,
    actions:actions,
    getters:getters
})

export default store